package org.jeecg.modules.car.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.car.entity.CarFeeRule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 月卡收费规则
 * @Author: jeecg-boot
 * @Date:   2020-09-01
 * @Version: V1.0
 */
public interface CarFeeRuleMapper extends BaseMapper<CarFeeRule> {

    List<CarFeeRule> findPage(Page<CarFeeRule> page, @Param("carFeeRule") CarFeeRule carFeeRule);

    int existName(@Param("parkId") String parkId,@Param("name") String name,@Param("id") String id);

    List<CarFeeRule> findByParkId(@Param("parkId") String parkId);

    CarFeeRule getByModelAndType(@Param("carModel") String carModel, @Param("carType") String carType);

    CarFeeRule getByParkRuleName(@Param("parkId") String parkId,@Param("feeRuleName") String feeRuleName);
}
